import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/union-auth/login/in',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/union-auth/login/userInfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/union-auth/login/out',
    method: 'get'
  })
}

// 修改auth管理员登录密码
export function changePassword(data) {
  return request({
    url: '/union-auth/login/changePassword',
    method: 'post',
    data
  })
}
